#include "Stack.h"
#include<iostream>
using namespace std;

void main()
{
	Stack<double,10> stack;
	Stack<double,10> stack2;
	stack.push(4);
	stack.push(4.1);
	stack.push(4.2);
	stack.push(4.3);
	stack.push(1);
	stack.push(1.1);
	stack.push(1.2);

	stack2 = stack;
	stack2.push(1.3);
	stack2.push(5);
	double outValue;
	while (stack.pop(outValue))
	{
		cout<<outValue<<endl;
	}
	cout<<endl;
	while (stack2.pop(outValue))
	{
		cout<<outValue<<endl;
	}
}